﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreEx.Common.Extensions;
using CoreEx.Database.Metadata.Generation;

namespace CoreEx.Database.MetaData.Implementation.Generation
{
    public class TypeCommentGenerator : CommentGeneratorBase, ITypeCommentGenerator
    {
        public string GetComment(string typeName)
        {
            var comment = new StringBuilder();
            comment.AppendLine(1, "/// <summary>");
            comment.AppendLine(1,"/// A class that represents a {0} entity.", typeName );
            comment.AppendLine(1, "/// </summary>");
            return comment.ToString();
        }
    }
}
